var mongoose = require('../provider/mongodb')
var Schema = mongoose.Schema;
//var ObjectId = Schema.Types.ObjectId;

var RecordSchema = new Schema({
    cn: { type: String },
    ko: { type: String },
    note: { type: String },
    origincn: { type: String },
    originko: { type: String },
    originnote: { type: String },
    type: { type: Number },
    uid: { type: String, ref: 'User' },
    tid:  { type: String, ref: 'Topik' }
}, { timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' } })

module.exports = mongoose.model('Record', RecordSchema);